<?php
/**
 * 基础Cache服务，分库
 * User: dxk
 * Date: 2020/07/15
 */
namespace App\Service;

use Cache;

class EasyCache
{
    /**
     * 获取缓存实例
     * @return \Illuminate\Contracts\Cache\Repository
     */
    public static function getCache()
    {
        static $cache_store = null;
        if (isset($cache_store)) {
            return $cache_store;
        }
        return Cache::store();
    }
}